package com.ncst.mvcweb.service;

import com.ncst.mvcweb.entity.OrderItem;
import com.ncst.mvcweb.entity.ProductOrder;
import com.ncst.mvcweb.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface ProductOrderService {
    Page<ProductOrder> findByUser(User user, Pageable pageable);
    ProductOrder queryById(Integer id);
    Page<ProductOrder> findByPage(Pageable pageable);
    ProductOrder save(ProductOrder order, List<OrderItem> orderItems);
    List<ProductOrder> findAll();
}
